<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui"
	xmlns:ui="http://java.sun.com/jsf/facelets">

<ui:composition template="/templates/template.xhtml">
	<p:growl id="growl" showDetail="true" sticky="true" />
	<ui:define name="title">
		Manter Pessoas
	</ui:define>

	<ui:define name="head">
		<style type="text/css">
#panelGrid1 {
	width: 100%;
	border-style: none;
	border-width: 0px;
}

.colunaPanelGrid1 {
	border-width: 0px;
	border-style: none;
}

.colDir {
	text-align: right;
}

.colEsq {
	text-align: left;
}

.dadosUsuario {
	font-weight: bold;
	font-size: 15px;
	margin-left: 10px;
}
</style>

	</ui:define>

	<ui:define name="centro">
		<h:form id="form1" prependId="false">

			<p:outputPanel id="painelEditarPessoa"
				rendered="#{manterPessoaMB.editarState or manterPessoaMB.adicionarState}">
				<ui:include src="painelEditarPessoa.xhtml" />
			</p:outputPanel>

			<p:outputPanel id="painelPesquisarPessoa"
				rendered="#{manterPessoaMB.pesquisarState}">
				<ui:include src="painelPesquisarPessoa.xhtml" />
			</p:outputPanel>
			
			<p:outputPanel id="painelDetalharPessoa"
				rendered="#{manterPessoaMB.detalharState}">
				<ui:include src="painelDetalharPessoa.xhtml" />
			</p:outputPanel>

		</h:form>
	</ui:define>
</ui:composition>
</html>